package com.maibow.service.admin;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.maibow.dao.DaoSupport;
import com.maibow.util.PageData;

/**
 * 
 * 脉博网络后台管理系统
 * 包名：com.maibow.service.admin
 * 文件名：IndexService.java
 * 作者: 吴比(Wubi)
 * 时间：2015年6月22日-上午10:17:26
 * Copyright@ 2015湖南脉博网络科技有限公司-版权所有
 *
 */
@Service("indexService")
public class IndexService {

    @Resource(name = "daoSupport")
    private DaoSupport dao;

    public PageData queryFavoriteCount(PageData pageData) throws Exception {
        return (PageData) dao.findForObject("IndexMapper.queryFavoriteCount", pageData);
    }

    public PageData queryMemberCount(PageData pageData) throws Exception {
        return (PageData) dao.findForObject("IndexMapper.queryMemberCount", pageData);
    }

    public PageData queryTodayOrderCount(PageData pageData) throws Exception {
        return (PageData) dao.findForObject("IndexMapper.queryTodayOrderCount", pageData);
    }

    public PageData queryYesOrderCount(PageData pageData) throws Exception {
        return (PageData) dao.findForObject("IndexMapper.queryYesOrderCount", pageData);
    }

    public PageData queryTodayGiftCount(PageData pageData) throws Exception {
        return (PageData) dao.findForObject("IndexMapper.queryTodayGiftCount", pageData);
    }

    public PageData queryYesGiftCount(PageData pageData) throws Exception {
        return (PageData) dao.findForObject("IndexMapper.queryYesGiftCount", pageData);
    }

    public PageData queryProductStoreCount(PageData pageData) throws Exception {
        return (PageData) dao.findForObject("IndexMapper.queryProductStoreCount", pageData);
    }

    public PageData queryMarketingMgrCount(PageData pageData) throws Exception {
        return (PageData) dao.findForObject("IndexMapper.queryMarketingMgrCount", pageData);
    }

    public PageData queryTablesCount(PageData pageData) throws Exception {
        return (PageData) dao.findForObject("IndexMapper.queryTablesCount", pageData);
    }
}
